<?php
//error_reporting(E_ALL);//错误报告级别
error_reporting(E_ERROR | E_PARSE);//错误报告级别
date_default_timezone_set('PRC');
$config = include(ROOT_PATH.'/Conf/config.php');
include(ROOT_PATH.'/Common/common_cache.php');
include(ROOT_PATH.'/Lib/cache.class.php');
include(ROOT_PATH.'/Lib/db_mysql.class.php');
include(ROOT_PATH.'/Lib/get.class.php');
include(ROOT_PATH.'/Lib/function.php');
$prefix = $config['DB_PREFIX'];
//实例化个数据库类
$db = new db();
$db->connect($config['DB_HOST'], $config['DB_USER'], $config['DB_PWD'], $config['DB_NAME']);

//实例化个缓存类
$cache = new Cache($db,$prefix);
$cache_config = array(
    'prefix'=>$sysconfig['memcache_prefix'],
    'memcache'=>array(
				    'server'=>$sysconfig['memcache_server'],
				    'pconnect'=>$sysconfig['memcache_pconnect'],
				    'port'=>$sysconfig['memcache_port']
				    ),
    'eaccelerator'=>$sysconfig['eaccelerator'],
    'xcache'=>$sysconfig['xcache']
);

$cache->init($cache_config);


$get = new Get($db,$cache,$prefix);




?>